package com.company.sendemo.basics.zzInterview.select;

//2022年2月
public class Seven {
      public static void main(String[] args){
          String text = "199";
          try{
              text = text.concat(".5");
              System.out.println(text);
              double v = Double.parseDouble(text);
              System.out.println(v);
              text = Double.toString(v);
              System.out.println(text);
              System.out.println(Math.abs(Double.valueOf(text).doubleValue())); //todo
              System.out.println(Math.acos(Double.valueOf(text).doubleValue()));
              System.out.println(Math.ceil(Double.valueOf(text).doubleValue())+"  x向正无穷取正");
              System.out.println(Math.floor(Double.valueOf(text).doubleValue()) + " 向负无穷取整");
          }catch (NumberFormatException e){
              System.out.println("Invalid Number");
          }
      }
}
